<?php 


/** 
***************************************************
*欢迎使用免费版xSite企业自助建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.php.net.cn/xsite/ 
***************************************************
**/




 chdir(dirname(getcwd())); require_once "php.net.cn/xsite/include/common.inc.php"; require_once "php.net.cn/xsite/include/360_safe3.php"; if(!defined('IN_SITETEAM')) { exit('Access Denied'); } $setting = cache_read("setting"); extract($setting); unset($password, $domain[$site_url]['password']); $settingfile = SITE_ROOT . "/data/setting/{$site_url}/mobi.setting.txt"; $defaultsettingfile = SITE_ROOT . "/data/default.mobi.setting.txt"; if (file_exists($settingfile) && filesize($settingfile) > 0) { $mobi_setting = read_array_file($settingfile); } else { $mobi_setting = read_array_file($defaultsettingfile); } extract($mobi_setting); $data = array(); if (!empty($cat_links)) { $cat_links = str_replace('，', ',', $cat_links); $cat_links = preg_replace('/[\n]+/is', ',', $cat_links); $cat_links = explode(",", $cat_links); if (is_array($cat_links) && count($cat_links)) { foreach ($cat_links as $k => $v) { $v = preg_replace('/[\s]+/is', '', $v); $temp = @explode('|', $v); if (is_array($temp) && count($temp) == 2) { $data[$k]['name'] = $temp[0]; $data[$k]['href'] = $temp[1]; } } } } $cat_links = $data; ?>